package com.prik.strategy.discount.strategies;

import com.prik.strategy.discount.DiscountStrategy;

import java.math.BigDecimal;

/**
 * 合作伙伴 抽取25%提成
 *
 * @author prik
 * @date 2019/7/18
 */
public class PartnerDiscountStrategy implements DiscountStrategy {
    @Override
    public BigDecimal calDiscountPrice(BigDecimal originalPrice) {
        System.out.println("合作伙伴xxx获得提成" + originalPrice.multiply(new BigDecimal("0.75")).toString() + "元");
        return originalPrice;
    }
}
